package org.example;

public class Main {
    public static void main(String[] args) {
        MySQLRedisDemo demo = new MySQLRedisDemo();

        //通过for循环，执行两次对1号学生的查询
        for (int i=0;i<10;i++){
            System.out.println("第"+(i+1)+"查询");
            Student student=demo.getStudentById(11);
            if (student!=null){
                System.out.println("ID:"+student.getId()+"Name:"+student.getName()+"Age:"+student.getAge()+"Score"+student.getScore());

            }
        }

        demo.Close();//关闭连接
    }
}
